package com.framework.loippi.entity;

import com.framework.loippi.mybatis.eitity.GenericEntity;
import com.framework.loippi.mybatis.ext.annotation.Column;
import com.framework.loippi.mybatis.ext.annotation.Table;

import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Entity - 药品规格库存价格管理
 * 
 * @author wmj
 * @version 2.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "T_MEDICINE_DETAILS")
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties({ "handler","hibernateLazyInitializer" }) 
@ApiModel(value="药品规格库存价格管理",description="药品规格库存价格管理")
public class Details implements GenericEntity {

	private static final long serialVersionUID = 5081846432919091193L;

	/** ID */
	@Column(id = true, name = "id", updatable = false)
	@ApiModelProperty(value = "ID")
	private Long id;
	
	/** 药品ID */
	@Column(name = "medicine_id" )
	@ApiModelProperty(value = "药品ID")
	private Long medicineId;
	
	/** 规格值ID拼接 （,） */
	@Column(name = "specification_id" )
	@ApiModelProperty(value = "规格值ID拼接 （,）")
	private String specificationId;
	
	/** 规格值 分号 拼接 */
	@Column(name = "specification_name" )
	@ApiModelProperty(value = "规格值 分号 拼接")
	private String specificationName;
	
	/** SKU */
	@Column(name = "SKU" )
	@ApiModelProperty(value = "SKU")
	private String sku;
	
	/** 库存 */
	@Column(name = "repertory" )
	@ApiModelProperty(value = "库存")
	private Integer repertory;
	
	/** 销售价 */
	@Column(name = "sales_price" )
	@ApiModelProperty(value = "销售价")
	private java.math.BigDecimal salesPrice;
	
	/** 划线价 */
	@Column(name = "line_price" )
	@ApiModelProperty(value = "划线价")
	private java.math.BigDecimal linePrice;
	
	/** 是否开启规格（1-开启2-未开启） */
	@Column(name = "status" )
	@ApiModelProperty(value = "是否开启规格（1-开启2-未开启）")
	private Integer status;
	
	/** 创建时间 */
	@Column(name = "create_time" )
	@ApiModelProperty(value = "创建时间")
	private java.util.Date createTime;
	
	/** 规格值JSON串 */
	@Column(name = "specification_json" )
	@ApiModelProperty(value = "规格值JSON串")
	private String specificationJson;
	
	/** 药品图片 */
	@Column(name = "image" )
	@ApiModelProperty(value = "药品图片")
	private String image;
	
}
